<template>
  <div class="test-container">
      <ImgLoder 
     placeholder="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?w=100"
     src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?fit=crop&crop=entropy&w=3456&h=2304"
     @load="handleload()"
      />
  </div>
</template>

<script>
import ImgLoder from './index.vue'
export default {
    components:{
        ImgLoder,
    },
    methods:{
        handleload(){
            console.log('图片加载完成');
        }
    }

}
</script>

<style scoped>
.test-container {
  width: 500px;
  height: 400px;
  margin: 0 auto;
}

</style>